

package com.maoshi.shop.distribution.comment.model;

import com.maoshi.shop.distribution.comment.vo.DistributionLevelConditionsSwitchVO;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

import java.io.Serializable;
import java.util.Date;
import java.util.List;
import com.baomidou.mybatisplus.annotation.*;

@Data
@TableName( "tz_distribution_level_set")
public class DistributionLevelSet implements Serializable {
     private static final long serialVersionUID = 1L;
    /**
     * 等级设置表
     */
    @TableId(type = IdType.AUTO)
    private Long levelSetId;

    /**
     * 店铺id
     */
    private Long shopId;

    /**
     * 等级条件
     */
    private String levelSetConditionsSwitchJson;

    /**
     * 修改时间
     */
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date updateTime;

    /**
     * 修改人id
     */
    private Long modifier;

    /**
     * 是否开启默认奖励(0关闭 1开启)
     */
    private Integer  awardSwitch;

    /**
     * 默认邀请人奖励(0关闭 1开启)
     */
    private Integer parentAwardSwitch;

    /**
     * 奖励比例(0 按比例 1 按固定数值)
     */
    private Integer awardProportion;

    /**
     * 是否自动升级(0否 1是)
     */
    private Integer isAutoAuditing;

    /**
     * 等级列表
     */
    @TableField(exist = false)
    private List<DistributionLevel> distributionLevels;

    /**
     * 等级条件设置
     */
    @TableField(exist = false)
    private DistributionLevelConditionsSwitchVO levelSetConditionsSwitch;

}
